package model

import (
	"context"
	"service/ctrl"
	"service/model/mod"

	gpb "gitee.com/cloudapex/protos/crm_base/pb"
	"google.golang.org/grpc"
)

var BaseDial baseDial

func init() {
	ctrl.GCon.RegistClienter(mod.GCONN_CRM_BASE, func(c *grpc.ClientConn) {
		BaseDial.cli = gpb.NewBaseDialSerClient(c)
	})
}

type baseDial struct {
	cli gpb.BaseDialSerClient
}

//说明：获取拨打记录列表
//参数：1.CallListReq 分页请求
func (this *baseDial) GetCallList(ctx context.Context, in *gpb.CallListReq) (*gpb.CallListRes, error) {
	return this.cli.GetCallList(ctx, in)
}
